<?php
require_once 'common.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Online PC</title>
        <link rel="stylesheet" href="css/style.css" type="text/css" />
        <link rel="stylesheet" href="css/jquery-ui-1.8.11.custom.css" type="text/css" />

        <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.11.custom.min.js"></script>

        <script type="text/javascript" src="js/hint.js"></script>
        <script type="text/javascript" src="js/menu-collapsed.js"></script>

        <script type="text/javascript" src="js/common.js"></script>

    </head>
    <body style="background: transparent url(images/background_inside.png) no-repeat center top;">
        <table cellspacing="0" cellpadding="0" border="0" width="900" style="margin-left: auto; margin-right: auto;">
            <tr>
                <td valign="middle" style="height: 130px;">
                    <?php banner('product'); ?>
                </td>
            </tr>            
            <tr>
                <td valign="middle" style="height: 52px;">
                    <?php login(); ?>
                </td>
            </tr>
            <tr><td style="height: 50px;"></td></tr>
            <tr>
                <td valign="top" style="height: 500px;">
                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tr>
                            <td class="category rounded_corner shadow" valign="top">
                                <?php leftMenu($db); ?>
                            </td>
                            <td style="width: 20px;"></td>
                            <td valign="top">
                                <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                    <tr>
                                        <td style="border-bottom: 1px solid #f0f0f0; height: 27px;" valign="top"><h3 style="margin: 0px;">Products</h3></td>
                                    </tr>
                                    <tr><td style="height: 20px;"></td></tr>
                                    <tr>
                                        <td valign="top">
                                            <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                                <tr><td>
                                                <?php
                                                    echo $productClass->getLatestProduct(null,null,null,$_SESSION['member_id'],null);
                                                ?>
                                                    </td></tr>
                                            </table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td id="paging">
                                            <?php echo $productClass->getPageNumber(); ?>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr><td style="height: 10px;"></td></tr>
                        <!--tr>
                            <td>
                                <input type="text" name="txtsearch" id="txtsearch" class="rounded_corner" style="width: 202px" title="Enter search keywords..." />
                                <input type="submit" value="Search" class="rounded_corner" style="width: 70px;" />
                            </td>
                        </tr-->
                    </table>
                </td>
            </tr>
            <tr>
                <td>

                </td>
            </tr>
        </table>
        <?php footer() ?>
    </body>
</html>